<!--
/*
*All rights reserved: Json.
*Links:http://www.liyaoquan.cn.
*Links:http://imarkchina.cn.
*Links:http://www.imarkchina.cn.
*/
-->
{foreach $data $v}
<div style="padding:10px 1px 4px {$v['html']}px;">
	<div class="ds-post-main">
		<div class="ds-avatar">
			{if empty($v['usermsg'])}
			<img src="{DOMAIN}{ROOT_URL}/Public/Images/pinglun.png" />
			{else}
			<img src="{$v['usermsg']}" />
			{/if}
		</div>
		<div class="ds-comment-body">
			{if $v['check']}
			<div class="ref">
				<h4>回复“{$v['reusername']}”的评论</h4>
			</div>
			{/if}
			{if !empty($v['url'])}
			<a href="{$v['url']}" target="_blank" class="user-name">{$v['username']}</a>
			{else}
			<div class="user-name">{$v['username']}</div>
			{/if}
			<p style="color:blue">&nbsp;&nbsp;&nbsp;{$v['content']}</p>
			<div class="ds-time">
				<p>{$v['date']} / {$v['time']}&nbsp;&nbsp;&nbsp;
					{if !empty($checksessionuser)}
					{if !empty($v['user_id'])&&$v['user_id']==session('username')}
					<a href="{U('user/users/del', array('did'=>$id,'fid'=>$v['fileid']))}" class="inputcss">删除</a>
					{/if}
					{/if}
					{if $canpl || $mark}
					{if $v['user_id']!=session('username')}
					<a onclick="getId({$v['rid']});" style="cursor:pointer;" class="showrepost-{$v['rid']}">回复此评论</a>
					{/if}
					<a onclick="hiderepost({$v['rid']});" class="hiderepost-{$v['rid']}" style="display:none;cursor:pointer;">关闭</a>
					{/if}
				</p>
			</div>
			<div class="rid-{$v['rid']}"></div>
		</div>
	</div>
</div>
{/foreach}
{if !$lastpage}
<div id="abc">当前还有没博友发表评论呢，你想当第一个吗？</div>
{else}
<div class="pagebar">
	<a onclick="ppget({$page['firpage']});" style="cursor:pointer;">首页</a>
	<a onclick="ppget({$page['uppage']});" style="cursor:pointer;">上一页</a>
	<a onclick="ppget({$page['nepage']});" style="cursor:pointer;">下一页</a>
	<a onclick="ppget({$page['laspage']});" style="cursor:pointer;">尾页</a>
	当前第{if !$page['current']}1{else}{$page['current']}{/if}页&nbsp;&nbsp;共{$lastpage}页
</div>
{/if}